$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .main {
    margin: 220/$f+vw 200/$f+vw  120/$f+vw 200/$f+vw;

    .links {
      display: flex;

      a,
      p,
      span {
        color: #B8B8B8;
        font-size: 24/$f+vw;
        text-transform: uppercase;
      }

      a {
        transition: all 600ms;

        &:hover {
          color: #E60012;
        }
      }

      span {
        margin: 0 1vw;
      }
    }

    .t {
      margin: 2vw 0 1vw 0;
      color: #000;
      font-size:64/$f+vw;
      font-weight: 600;
      text-transform: uppercase;
    }
    .t2{
      color: #000;
      font-size: 24/$f+vw;
      line-height: 2;
    }
    .t3{
      color: #666;
      font-size: 20/$f+vw;
      margin-top: 1.5vw;
    }
    .pro_box{
      margin: 3vw 0;
      .allItems{
        display: flex;
        flex-wrap: wrap;
        width: 103.2%;
        margin-left: -1.6%;
        a{
          display: block;
          width: 31%;
          background-color: white;
          margin-left: 1.6%;
          margin-top: 3vw;
          .pic{
            overflow: hidden;
            img{
              width: 100%;
              display: block;
               object-fit: cover;
               transition: all 600ms;
            }
          }
          .name{
            color: #000;
            font-size: 24/$f+vw;
            text-transform: uppercase;
            text-align: center;
            margin: 1.5vw 0;
            transition: all 600ms;
          }
          .more{
            width: 48/$f+vw;
            height: 48/$f+vw;
            position: relative;
            text-align: center;
            margin: auto;
            overflow: hidden;
            svg{
              vertical-align: middle;
              transition: all 0.3s ease-out;
              width: 48/$f+vw;
              position: relative;
              left: 0;
              path{
                transition: all 600ms;
              }
              &:nth-child(2) {
                position: absolute;
                left: -48/$f+vw;
                top: 0;
              }
            }
          }
          &:hover{
            .pic{
              img{
                transform: scale(1.05);
              }
            }
            .name{
              color:#E60012;
            }
            .more{
              svg{
                &:first-child{
                  left: 48/$f+vw;
                }
                &:nth-child(2) {
                  left: 0px;
                }
                //transform: translateY(10px);
                path{
                  //stroke: #E60012;
                }
              }
            }
          }
        }
      }
      .pager{
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5vw 0;
        .prev,.next{
          svg{
            display: block;
            width: 23/$f+vw;
          }
        }
        .nums{
          display: flex;
          margin: 0 1vw;
          a{
            color:rgba(139, 139, 139, 1);
            font-size: 20/$f+vw;
            padding: 0.1vw 0.5vw;
            margin: 0 0.2vw;
          }
          .active{
            color:#000;
            border-bottom: 2px solid #000;
            font-weight: 600;
          }
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 100px;
    .main{
      margin: 0 5%;
      .links{
        a,p,span{
          font-size: 16px;
        }
      }
      .t{
        font-size: 26px;
        margin: 20px 0 10px 0;
      }
      .t2{
        font-size: 18px;
        line-height: 1.5;
      }
      .t3{
        font-size: 16px;
        line-height: 1.5;
        margin-top: 15px;
      }
      .pro_box{
        .allItems{
          width: 100%;
          margin-left: 0;
          a{
            width: 100%;
            margin-left: 0;
            margin: 0 0 30px 0;
            .name{
              font-size: 18px;
              margin: 15px 0;
            }
            .more{
              width: 30px;
              height: 30px;
              svg{
                width: 30px;
                &:nth-child(2) {
                  position: absolute;
                  left: -30px;
                  top: 0;
                }
              }
            }
            &:hover{
              .more{
                svg{
                  &:first-child{
                    left: 30px;
                  }
                  &:nth-child(2) {
                    left: 0px;
                  }
                }
              }
            }
          }
        }
        .pager{
          margin: 20px 0 60px 0;
          .prev,.next{
            svg{
              width: auto;
            }
          }
          .nums{
            margin: 0 10px;
            a{
              font-size: 16px;
              padding: 3px 5px;
              margin: 0 5px;
            }
          }
        }
      }
    }
  }
}